save read contents into new file